﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="inventory.aspx.cs" Inherits="HPIT_Library.inventory" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" />
		<link rel="stylesheet" href="css/Site.css" />
		<link rel="stylesheet" href="css/zy.all.css" />
		<link rel="stylesheet" href="css/font-awesome.min.css" />
		<link rel="stylesheet" href="css/amazeui.min.css" />
	  <link rel="stylesheet" href="css/admin.css" />
</head>
<body>
    <form id="form1" runat="server" >
       <div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs">
					<div class="hd">
						<ul>
							<li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">库存管理</li>
							 <li class="" style="box-sizing: initial;-webkit-box-sizing: initial;">
								 <a href="inventory2.aspx">
									 库存管理二
								 </a></li>
						</ul>
					</div>
					<div class="bd" style="height:100% auto">
						<ul style="display: block;padding: 20px;">
							<li>
								<!--分页显示角色信息 start-->
								<div id="dv1">
									<div>
										图书名称:<asp:TextBox ID="txtBook" runat="server"></asp:TextBox>
										图书作者:<asp:TextBox ID="txtAscor" runat="server"></asp:TextBox>
										图书类别:<asp:DropDownList ID="DropDownList1"  DataTextField="CategoryName" DataValueField="CategoryId" runat="server">
                                        </asp:DropDownList>
										 <asp:Button ID="Button1" runat="server" Text="检索" OnClick="Button1_Click" />
									</div>
									<div style="text-align:center">
                                       
									    <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="BookId,CategoryId"  >
                                            <Columns>
                                                <asp:BoundField DataField="BookId" HeaderText="图书编号" InsertVisible="False" ReadOnly="True" SortExpression="BookId" />
                                                <asp:BoundField DataField="BookName" HeaderText="图书名称" SortExpression="BookName" />
                                                <asp:BoundField DataField="BookSynopsis" HeaderText="图书简介" SortExpression="BookSynopsis" />
                                                <asp:BoundField DataField="BookAuthor" HeaderText="作者" SortExpression="BookAuthor" />
                                                <asp:BoundField DataField="BookMoney" HeaderText="图书价格" SortExpression="BookMoney" />
                                                <asp:BoundField DataField="BookClassId" HeaderText="BookClassId" Visible="false" SortExpression="BookClassId" />
                                                <asp:BoundField DataField="CategoryId" HeaderText="CategoryId" Visible="false" InsertVisible="False" ReadOnly="True" SortExpression="CategoryId" />
                                                <asp:BoundField DataField="CategoryName" HeaderText="所属类别" SortExpression="CategoryName" />
                                                <asp:TemplateField HeaderText="更改">
                                                    <ItemTemplate>
                                                     	<a href='<%#"UpdataBooks.aspx?BookId="+Convert.ToInt32( Eval("BookId"))%>'>编辑</a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                       
									</div>
									
								</div>
								<!--分页显示角色信息 end-->
							</li>
						</ul>
						<ul class="theme-popbod dform" style="display: none;">
								<div class="am-cf admin-main" style="padding-top: 0px;">
							<!-- content start -->
							</div>
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>


		</div>
    </form>
</body>
</html>
